package com.learn.annotate;

import java.util.List;

public class PasswordUtils {
    @UseCase(id=47,description = "Password must...")
    public boolean validatePassword(String password) {
        return (password.matches("\\w*\\d\\w*"));
    }

    @UseCase(id = 48)
    public String encryptPassword(String password) {
        return new StringBuilder(password).reverse().toString();
    }

    @UseCase(id=49,description = "new password")
    public boolean checkForPassword
        (List<String> ps, String password) {
        return !ps.contains(password);
    }
}
